<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>

    // 对象解构赋值的时候要注意，左右两边的变量名要一样.和对象中变量的顺序没有关系
    // let {hd,rn} = {hd:'后盾',rn:'react native'};
    let {hd,rn} = {rn:'react native',hd:'后盾'};
    console.log(hd);
    console.log(rn);

</script>


</body>
</html>